import request from '@/utils/request';
// 添加采集
export async function fakeInformationCollection(data) {
    return request('/marketing/informationCollection/insertInformationCollection', {
        method: 'post',
        data,
    });
}
//获取采集列表
export async function fetchInformationCollection(params) {
    return request('/marketing/informationCollection/listInformationCollection', {
        params,
    });
}

//获取采集列表
export async function fetchInformationCollectionDetail(params) {
    return request('/marketing/informationCollection/getInformationCollectionDetail', {
        params,
    });
}

// get 修改采集表单
export async function fakeUpdateInformationCollection(data) {
    return request('/marketing/informationCollection/updateInformationCollection', {
        method: 'post',
        data,
    });
}
// get 添加采集
export async function fakeDeleteInformationCollection(data) {
    return request('/marketing/informationCollection/deleteInformationCollection', {
        method: 'post',
        data,
    });
}
// post 启用采集表单
export async function fakeEnableInformation(data) {
    return request('/marketing/informationCollection/enableInformationCollection', {
        method: 'post',
        data,
    });
}

// post 禁用采集表单
export async function fakeDisableInformation(data) {
    return request('/marketing/informationCollection/disableInformationCollection', {
        method: 'post',
        data,
    });
}



//获取banner
export async function fetchListBanner(params) {
    return request('/common/banner/listBanner', {
        params,
    });
}

// post 保存banner
export async function fakeSaveBanner(data) {
    return request('/common/banner/saveBanner', {
        method: 'post',
        data,
    });
}
